vectors A and B